package com.xiaoyu.lanling.feature.report

import `in`.srain.cube.views.list.CubeRecyclerViewAdapter
import com.xiaoyu.lanling.feature.report.viewholders.ReportMediaAddViewHolder
import com.xiaoyu.lanling.feature.report.viewholders.ReportMediaImageViewHolder

object ReportViewHolderManager {

    const val ITEM_VIEW_TYPE_PUBLISH_MEDIA_IMAGE = 0
    const val ITEM_VIEW_TYPE_PUBLISH_MEDIA_ADD = 1

    fun bindViewHolderForPublish(adapter: CubeRecyclerViewAdapter<*>?) {
        adapter?.setViewHolderClass(ITEM_VIEW_TYPE_PUBLISH_MEDIA_IMAGE, null, ReportMediaImageViewHolder::class.java, 9)
        adapter?.setViewHolderClass(ITEM_VIEW_TYPE_PUBLISH_MEDIA_ADD, null, ReportMediaAddViewHolder::class.java, 1)
    }
}